package com.vnp.cooking.fragmentKitchen;

import com.vnp.cooking.R;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

public class FragmentLiked extends Fragment {
	View v;
	private static final String KEY_CONTENT = "FrgGianbepcuatoi:Content";
	private String mContent = "???";

	public static FragmentLiked newInstance(String content) {
		FragmentLiked fragment = new FragmentLiked();
		fragment.mContent = content;
		return fragment;
	}
	
	

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		 if ((savedInstanceState != null) && savedInstanceState.containsKey(KEY_CONTENT)) {
             mContent = savedInstanceState.getString(KEY_CONTENT);
         }
	}



	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		v = (View) inflater.inflate(R.layout.frg_kitchen_liked, container,
				false);
		Log.i("Test", "Likeddddddddddd");
		return v;
	}
	public void onSaveInstanceState(Bundle outState) {
        super.onSaveInstanceState(outState);
        outState.putString(KEY_CONTENT, mContent);
    }
}
